package com.zwjstudy.cachestudy.springcache.redis.controller;

import com.zwjstudy.cachestudy.springcache.redis.entity.Company;
import com.zwjstudy.cachestudy.springcache.redis.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: CompanyController
 * Package: com.zwjstudy.cachestudy.springcache.caffeine.controller
 * Description:
 *
 * @Author: 张文俊
 * @Create: 2025-09-20 - 11:43
 * @Version: v1.0
 */
@RestController
@RequestMapping("/company")
public class CompanyController {
    @Autowired
    private CompanyService companyService;

    @GetMapping("getById")
    public Company getById(Long id){

        return companyService.getById(id);
    }

}
